how to solve gamma function